from django.contrib import admin

# Register your models here.
from .models import Sign, Name, Picture

class SignAdmin(admin.ModelAdmin):
    list_display = ('wx_id', 'sign_time')
    search_fields = ('wx_id', 'sign_time')

class NameAdmin(admin.ModelAdmin):
    list_display = ('name', 'wx_id')
    search_fields = ('name', 'wx_id')

class PictureAdmin(admin.ModelAdmin):
    list_display = ('wx_id', 'pic_url', 'media_id', 'insert_time')
    search_fields = ('wx_id', 'pic_url', 'media_id', 'insert_time')

admin.site.register(Sign, SignAdmin)
admin.site.register(Name, NameAdmin)
admin.site.register(Picture, PictureAdmin)
